package lab.gene.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lab.user.pojo.User;


@Entity
@Table(name = "colony_pcr")
public class GeneColony implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name="id")
	int id;
	
	@ManyToOne(targetEntity = User.class)
    @JoinColumn(name = "username")
	private User user;
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
	@ManyToOne(targetEntity = Gene.class)
    @JoinColumn(name = "genename")
	private Gene gene;
	public Gene getGene() {
		return gene;
	}
	public void setGene(Gene gene) {
		this.gene = gene;
	}
	
	@Column(name="confirmed_type")
	String type;
	@Column(name="expected_size")
	int size;
	@Temporal(TemporalType.DATE)
	@Column(name="record_date1")
	Date date1;
	@Temporal(TemporalType.DATE)
	@Column(name="record_date2")
	Date date2;
	@Temporal(TemporalType.DATE)
	@Column(name="record_date3")
	Date date3;
	@Column(name="primer1")
	String primer1;
	@Column(name="primer2")
	String primer2;
	@Column(name="primer3")
	String primer3;
	@Column(name="pno1")
	String pno1;
	@Column(name="pno2")
	String pno2;

	@Column(name="date_modified")
	Date dateModified;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public Date getDate1() {
		return date1;
	}
	public void setDate1(Date date1) {
		this.date1 = date1;
	}
	public Date getDate2() {
		return date2;
	}
	public void setDate2(Date date2) {
		this.date2 = date2;
	}
	public Date getDate3() {
		return date3;
	}
	public void setDate3(Date date3) {
		this.date3 = date3;
	}
	public String getPrimer1() {
		return primer1;
	}
	public void setPrimer1(String primer1) {
		this.primer1 = primer1;
	}
	public String getPrimer2() {
		return primer2;
	}
	public void setPrimer2(String primer2) {
		this.primer2 = primer2;
	}
	public String getPrimer3() {
		return primer3;
	}
	public void setPrimer3(String primer3) {
		this.primer3 = primer3;
	}

	public Date getDateModified() {
		return dateModified;
	}
	public void setDateModified(Date dateModified) {
		this.dateModified = dateModified;
	}
	public String getPno1() {
		return pno1;
	}
	public void setPno1(String pno1) {
		this.pno1 = pno1;
	}
	public String getPno2() {
		return pno2;
	}
	public void setPno2(String pno2) {
		this.pno2 = pno2;
	}
	
}
